package API.ObjectAPI;

public class CommonMethod {
    public static void main(String[] args) {
        Object obj1 = new Object();
        Object obj2 = new Object();
        //toString会将对象进行特殊转化，使其变为字符串
        //System.out.println中包含了toString方法
        System.out.println(obj1.toString());
        System.out.println(obj2.toString());
        System.out.println(obj1.equals(obj2));
    }
}
